import request from '@/router/axios';

// 渠道类别列表
export const OrderChannelTypeList = (query) => {
  return request({
    url: '/api/xmbz-order/order/getOrderChannelTypeList',
    // url: 'http://192.168.2.106:8107/order/getOrderChannelTypeList',
    method: 'get',
    params: query
  })
}
export const getOrderChannelLists = (query) => {
  return request({
    url: '/api/xmbz-order/order/getOrderChannelList',
    // url: 'http://192.168.2.106:8107/order/getOrderChannelTypeList',
    method: 'get',
    params: query
  })
}
export const getautoconfirmLog = (query) => {
  return request({
    url: '/api/xmbz-order/autoconfirmLog/getLogData',
    // url: 'http://192.168.2.106:8107/order/getOrderChannelTypeList',
    method: 'get',
    params: query
  })
}
export function deptdepts() { //城市
  return request({
    url: '/api/xmbz-system/dept/depts',
    method: 'get',
  })
}
export function getOrderErrorDepts() { //城市
  return request({
    url: '/api/xmbz-system/dept/getOrderErrorDepts',
    method: 'get',
  })
}
export const autolog = (query) => { //红包发放状态
  return request({
    url: '/api/xmbz-system/dict/dictionary?code=auto_log',
    method: 'get',
    params: query
  })
}
